// pages/detail/detail.js
const https = require("../../models/home")

Page({
  data: {
    lists:""
  },
  onLoad: function (options) {
    let {title,keyword} = options
    wx.setNavigationBarTitle({
      title
    })
    var http = https[keyword]
    http().then(res=>{
      var lists = res.data.playlists
      this.setData({
        lists
      })
    })
  }
})